package main.social.service;

import main.social.entities.Accounts;
import java.util.List;

public interface AccountService {
	public enum Code{
		SUCCESS,
		CONFLICT_USERNAME,
		CONFLICT_EMAIL,
		UNHANDLE_ERROR
	}
    Accounts findAccountById(long id);
    void insertAccount(Accounts myObjectVO);
    void updateAccount(Accounts myObjectVO);
    @SuppressWarnings("rawtypes")
	List getAllAccounts();
    void removeAccount(Accounts myObjectVO);
    Code insertAccount(String username, String password, String email);
    
    boolean Login(String username, String password);
}
